AuthenticateCallback

public interface AuthenticateCallback implements NetworkAsyncCallback<P, R>

The callback that is invoked when an HTTP request receives an authentication challenge and is unable to respond using cached credentials. You can use this method to handle "basic" or "digest" authentication.

The callback can be used to display a UI dialog to ask the user to enter the credentials (is not obligated).

Use the cancel method to reject the authentication request.

Use the authenticate method to provide the credentials. In case you provide the credentials, the callback will not be invoked again for the current domain.

If the callback throws an exception, the cancel method will be invoked.

Types

Link copied to clipboard
public final class Action extends AsyncCallbackAction<R>
An action providing a response to the AuthenticateCallback.
Link copied to clipboard
public interface Params
The parameters of the AuthenticateCallback.

Functions

Link copied to clipboard
public abstract void on(P params, R tell)
Invoked when the callback needs a response for the given callback parameters.